package com.xiaolin.springbootdemo.service.impl;

import com.github.pagehelper.PageHelper;
import com.xiaolin.springbootdemo.dao.AccountDao;
import com.xiaolin.springbootdemo.model.Account;
import com.xiaolin.springbootdemo.service.AccountService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName AccountServiceImpl
 * @Description 描述
 * @Detail detail
 * @Author MyPC
 * @Date 2021/1/10
 * @Version 1.0
 */
@Service
public class AccountServiceImpl implements AccountService{
    @Autowired
    private AccountDao accountDao;
    @Override
    public List<Account> queryList(Integer pageNum,Integer pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        return accountDao.queryList();
    }
}
